package com.infore.statisticsAndAlarm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.infore.statisticsAndAlarm.service.IStationRateService;
import com.infore.statisticsAndAlarm.util.ResultEntity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "站点相关率管理接口", tags = { "站点相关率管理接口" })
@RestController
@RequestMapping("/stationRate")
public class StationRateController {

	@Autowired
	private IStationRateService iStationRateService;
	
	@ApiOperation(value = "数据上传率数据有效率")
	@ApiImplicitParams({
		@ApiImplicitParam(value = "开始时间", name = "startTime", paramType = "query",required = true,dataType = "String"),
		@ApiImplicitParam(value = "结束时间", name = "endTime", paramType = "query",required = true,dataType = "String"),
		@ApiImplicitParam(name = "站点mn", value = "stationMns", paramType = "query", required = false, dataType = "String")})
	@GetMapping(value = "/queryRate")
	public ResultEntity query(String startTime,String endTime,String stationMns) {
		return iStationRateService.queryRate(startTime, endTime, stationMns);
	}
}
